@charset "UTF-8";

//apps rely on some named colors to be exported
/* GTK NAMED COLORS
   ----------------
   use responsibly! */

// Sass thinks we're using the colors in the variables as strings and may shoot
// warning, it's innocuous and can be defeated by using "" + $var

/*
widget text/foreground color */
@define-color theme_fg_color #{"" + internal_window(foreground)};

/*
text color for entries, views and content in general */
@define-color theme_text_color #{"" + internal_view(foreground)};

/*
widget base background color */
@define-color theme_bg_color #{"" + internal_window(background)};

/*
text widgets and the like base background color */
@define-color theme_base_color #{"" + internal_view(background)};

/*
base background color of selections */
@define-color theme_selected_bg_color #{"" + internal_selection(background)};

/*
text/foreground color of selections */
@define-color theme_selected_fg_color #{"" + internal_selection(foreground)};

/*
base background color of insensitive widgets */
@define-color insensitive_bg_color #{"" + internal_insensitive(internal_window(background))};

/*
text foreground color of insensitive widgets */
@define-color insensitive_fg_color #{"" + internal_insensitive(internal_window(foreground))};

/*
insensitive text widgets and the like base background color */
@define-color insensitive_base_color #{"" + internal_insensitive(internal_view(background))};

/*
insensitive text color for entries, views and content in general */
@define-color insensitive_text_color #{"" + internal_insensitive(internal_view(foreground))};

/*
base background color of insensitive selections */
@define-color insensitive_selected_bg_color #{"" + internal_insensitive(internal_selection(background))};

/*
text foreground color of insensitive selections */
@define-color insensitive_selected_fg_color #{"" + internal_insensitive(internal_selection(foreground))};

/*
text foreground color of insensitive unfocused selections */
@define-color insensitive_unfocused_selected_fg_color #{"" + internal_backdrop(internal_insensitive(internal_selection(foreground)))};

/*
widget text/foreground color on backdrop windows */
@define-color theme_unfocused_fg_color #{"" + internal_backdrop(internal_window(foreground))};

/*
text color for entries, views and content in general on backdrop windows */
@define-color theme_unfocused_text_color #{"" + internal_backdrop(internal_view(foreground))};

/*
widget base background color on backdrop windows */
@define-color theme_unfocused_bg_color #{"" + internal_backdrop(internal_window(background))};

/*
text widgets and the like base background color on backdrop windows */
@define-color theme_unfocused_base_color #{"" + internal_backdrop(internal_view(background))};

/*
base background color of selections on backdrop windows */
@define-color theme_unfocused_selected_bg_color #{"" + internal_backdrop(internal_selection(background))};

/*
text/foreground color of selections on backdrop windows */
@define-color theme_unfocused_selected_fg_color #{"" + internal_backdrop(internal_selection(foreground))};

/*
insensitive color on backdrop windows*/
@define-color unfocused_insensitive_color #{"" + internal_backdrop(internal_insensitive(internal_window(background)))};

/*
backdground color of insensitive widgets on backdrop windows*/
@define-color insensitive_unfocused_bg_color #{"" + internal_backdrop(internal_insensitive(internal_window(background)))};

/*
text foreground color of insensitive widgets on backdrop windows*/
@define-color insensitive_unfocused_fg_color #{"" + internal_backdrop(internal_insensitive(internal_window(foreground)))};

/*
widgets main borders color */
@define-color borders #{"" + internal_widget(border)};

/*
widgets main borders color on backdrop windows */
@define-color unfocused_borders #{"" + internal_backdrop(internal_widget(border))};

/*
widgets main borders color insensitive */
@define-color insensitive_borders #{"" + internal_insensitive(internal_widget(border))};

/*
widgets main borders color insensitive backdrop */
@define-color unfocused_insensitive_borders #{"" + internal_backdrop(internal_insensitive(internal_widget(border)))};

/*
textview main backgound color */
// @define-color textview_bg_color #{"" +$textview_bg_color};

@define-color switch_slider_color #{#ffffff};

@define-color container_hover_color mix(@theme_bg_color, @theme_fg_color, 0.1);
@define-color container_active_color mix(@theme_bg_color, @theme_fg_color, 0.2);

// FIXME
@define-color backdrop_base_color @theme_base_color;
@define-color backdrop_borders_color mix(@borders, @theme_bg_color, 0.8);


/* --------------------------------------------------------------- Default Colors --------------------------------------------------------------- */
@define-color theme_default_background_normal                 #{"" + internal_default(background)};
@define-color theme_default_background_insensitive            #{"" + internal_insensitive(internal_default(background))};
@define-color theme_default_background_backdrop               #{"" + internal_backdrop(internal_default(background))};
@define-color theme_default_background_backdrop_insensitive   #{"" + internal_insensitive(internal_backdrop(internal_default(background)))};
@define-color theme_default_foreground_normal                 #{"" + internal_default(foreground)};
@define-color theme_default_foreground_insensitive            #{"" + internal_insensitive(internal_default(foreground))};
@define-color theme_default_foreground_backdrop               #{"" + internal_backdrop(internal_default(foreground))};
@define-color theme_default_foreground_backdrop_insensitive   #{"" + internal_insensitive(internal_backdrop(internal_default(foreground)))};
@define-color theme_default_border_normal                     #{"" + internal_default(border)};
@define-color theme_default_border_insensitive                #{"" + internal_insensitive(internal_default(border))};
@define-color theme_default_border_backdrop                   #{"" + internal_backdrop(internal_default(border))};
@define-color theme_default_border_backdrop_insensitive       #{"" + internal_insensitive(internal_backdrop(internal_default(border)))};
@define-color theme_default_warning                           #{"" + internal_default(warning)};
@define-color theme_default_warning_backdrop                  #{"" + internal_backdrop(internal_default(warning))};
@define-color theme_default_error                             #{"" + internal_default(error)};
@define-color theme_default_error_backdrop                    #{"" + internal_backdrop(internal_default(error))};
@define-color theme_default_success                           #{"" + internal_default(success)};
@define-color theme_default_success_backdrop                  #{"" + internal_backdrop(internal_default(success))};


/* these are pretty self explicative */
@define-color warning_color #{"" +internal_default(warning)};
@define-color error_color #{"" +internal_default(error)};
@define-color success_color #{"" +internal_default(success)};


/* --------------------------------------------------------------- Widget Colors --------------------------------------------------------------- */
@define-color theme_widget_background_normal                   #{"" + internal_widget(background)};
@define-color theme_widget_background_hover                    #{"" + internal_widget(background-hover)};
@define-color theme_widget_background_active                   #{"" + internal_widget(background-active)};
@define-color theme_widget_background_checked                  #{"" + internal_widget(background-checked)};
@define-color theme_widget_background_insensitive              #{"" + internal_insensitive(internal_widget(background))};
@define-color theme_widget_background_backdrop                 #{"" + internal_backdrop(internal_widget(background))};
@define-color theme_widget_background_backdrop_checked         #{"" + internal_backdrop(internal_widget(background-checked))};
@define-color theme_widget_background_backdrop_insensitive     #{"" + internal_insensitive(internal_backdrop(internal_widget(background)))};
@define-color theme_widget_foreground_normal                   #{"" + internal_widget(foreground)};
@define-color theme_widget_foreground_hover                    #{"" + internal_widget(foreground-hover)};
@define-color theme_widget_foreground_active                   #{"" + internal_widget(foreground-active)};
@define-color theme_widget_foreground_checked                  #{"" + internal_widget(foreground-checked)};
@define-color theme_widget_foreground_insensitive              #{"" + internal_insensitive(internal_widget(foreground))};
@define-color theme_widget_foreground_backdrop                 #{"" + internal_backdrop(internal_widget(foreground))};
@define-color theme_widget_foreground_backdrop_checked         #{"" + internal_backdrop(internal_widget(foreground-checked))};
@define-color theme_widget_foreground_backdrop_insensitive     #{"" + internal_insensitive(internal_backdrop(internal_widget(foreground)))};
@define-color theme_widget_border_normal                       #{"" + internal_widget(border)};
@define-color theme_widget_border_hover                        #{"" + internal_widget(border-hover)};
@define-color theme_widget_border_focus                        #{"" + internal_widget(border-focus)};
@define-color theme_widget_border_insensitive                  #{"" + internal_insensitive(internal_widget(border))};
@define-color theme_widget_border_backdrop                     #{"" + internal_backdrop(internal_widget(border))};
@define-color theme_widget_border_backdrop_insensitive         #{"" + internal_insensitive(internal_backdrop(internal_widget(border)))};


/* --------------------------------------------------------------- Bare Colors --------------------------------------------------------------- */
@define-color theme_bare_background_normal                     #{"" + internal_bare(background)};
@define-color theme_bare_background_hover                      #{"" + internal_bare(background-hover)};
@define-color theme_bare_background_active                     #{"" + internal_bare(background-active)};
@define-color theme_bare_background_checked                    #{"" + internal_bare(background-checked)};
@define-color theme_bare_background_insensitive                #{"" + internal_insensitive(internal_bare(background))};
@define-color theme_bare_background_backdrop                   #{"" + internal_backdrop(internal_bare(background))};
@define-color theme_bare_background_backdrop_checked           #{"" + internal_backdrop(internal_bare(background-checked))};
@define-color theme_bare_background_backdrop_insensitive       #{"" + internal_insensitive(internal_backdrop(internal_bare(background)))};
@define-color theme_bare_foreground_normal                     #{"" + internal_bare(foreground)};
@define-color theme_bare_foreground_hover                      #{"" + internal_bare(foreground-hover)};
@define-color theme_bare_foreground_active                     #{"" + internal_bare(foreground-active)};
@define-color theme_bare_foreground_checked                    #{"" + internal_bare(foreground-checked)};
@define-color theme_bare_foreground_insensitive                #{"" + internal_insensitive(internal_bare(foreground))};
@define-color theme_bare_foreground_backdrop                   #{"" + internal_backdrop(internal_bare(foreground))};
@define-color theme_bare_foreground_backdrop_checked           #{"" + internal_backdrop(internal_bare(foreground-checked))};
@define-color theme_bare_foreground_backdrop_insensitive       #{"" + internal_insensitive(internal_backdrop(internal_bare(foreground)))};

/* --------------------------------------------------------------- Window Colors --------------------------------------------------------------- */
@define-color theme_window_background_normal                   #{"" + internal_window(background)};
@define-color theme_window_background_insensitive              #{"" + internal_insensitive(internal_window(background))};
@define-color theme_window_background_backdrop                 #{"" + internal_backdrop(internal_window(background))};
@define-color theme_window_background_backdrop_insensitive     #{"" + internal_insensitive(internal_backdrop(internal_window(background)))};
@define-color theme_window_foreground_normal                   #{"" + internal_window(foreground)};
@define-color theme_window_foreground_insensitive              #{"" + internal_insensitive(internal_window(foreground))};
@define-color theme_window_foreground_backdrop                 #{"" + internal_backdrop(internal_window(foreground))};
@define-color theme_window_foreground_backdrop_insensitive     #{"" + internal_insensitive(internal_backdrop(internal_window(foreground)))};
@define-color theme_window_border_normal                       #{"" + internal_window(border)};
@define-color theme_window_border_insensitive                  #{"" + internal_insensitive(internal_window(border))};
@define-color theme_window_border_backdrop                     #{"" + internal_backdrop(internal_window(border))};
@define-color theme_window_border_backdrop_insensitive         #{"" + internal_insensitive(internal_backdrop(internal_window(border)))};

/* --------------------------------------------------------------- View Colors --------------------------------------------------------------- */
@define-color theme_view_background_normal                     #{"" + internal_view(background)};
@define-color theme_view_background_insensitive                #{"" + internal_insensitive(internal_view(background))};
@define-color theme_view_background_backdrop                   #{"" + internal_backdrop(internal_view(background))};
@define-color theme_view_background_backdrop_insensitive       #{"" + internal_insensitive(internal_backdrop(internal_view(background)))};
@define-color theme_view_foreground_normal                     #{"" + internal_view(foreground)};
@define-color theme_view_foreground_insensitive                #{"" + internal_insensitive(internal_view(foreground))};
@define-color theme_view_foreground_backdrop                   #{"" + internal_backdrop(internal_view(foreground))};
@define-color theme_view_foreground_backdrop_insensitive       #{"" + internal_insensitive(internal_backdrop(internal_view(foreground)))};
@define-color theme_view_border_normal                         #{"" + internal_view(border)};
@define-color theme_view_border_focus                          #{"" + internal_view(border-focus)};
@define-color theme_view_border_insensitive                    #{"" + internal_insensitive(internal_view(border))};
@define-color theme_view_border_backdrop                       #{"" + internal_backdrop(internal_view(border))};
@define-color theme_view_border_backdrop_insensitive           #{"" + internal_insensitive(internal_backdrop(internal_view(border)))};


/* -------------------------------------------------------------- Titlebar Colors -------------------------------------------------------------- */
@define-color theme_titlebar_background_normal                 #{"" + internal_titlebar(background)};
@define-color theme_titlebar_background_insensitive            #{"" + internal_insensitive(internal_titlebar(background))};
@define-color theme_titlebar_background_backdrop               #{"" + internal_backdrop(internal_titlebar(background))};
@define-color theme_titlebar_background_backdrop_insensitive   #{"" + internal_insensitive(internal_backdrop(internal_titlebar(background)))};
@define-color theme_titlebar_foreground_normal                 #{"" + internal_titlebar(foreground)};
@define-color theme_titlebar_foreground_insensitive            #{"" + internal_insensitive(internal_titlebar(foreground))};
@define-color theme_titlebar_foreground_backdrop               #{"" + internal_backdrop(internal_titlebar(foreground))};
@define-color theme_titlebar_foreground_backdrop_insensitive   #{"" + internal_insensitive(internal_backdrop(internal_titlebar(foreground)))};
@define-color theme_titlebar_border_normal                     #{"" + internal_titlebar(border)};
@define-color theme_titlebar_border_insensitive                #{"" + internal_insensitive(internal_titlebar(border))};
@define-color theme_titlebar_border_backdrop                   #{"" + internal_backdrop(internal_titlebar(border))};
@define-color theme_titlebar_border_backdrop_insensitive       #{"" + internal_insensitive(internal_backdrop(internal_titlebar(border)))};